package com.linuxgt.mobile.utils;

/**
 * Created with IntelliJ IDEA.
 * User: LIUTENG
 * Date: 13-5-22
 * Time: 下午5:44
 * To change this template use File | Settings | File Templates.
 */
public class xmlTools {
    /**
     * 将xml格式的字符串转成一般格式字符串
     * 如将 &lt;转成<
     * @param xmlStr
     * @return 一般形式的字符串
     */
    public static String xml2string(String xmlStr){
        return xmlStr.replace("&lt;","<").replace("&gt;",">");
    }


    //修正下输出xml时string标签问题
    public static String xmlStreamRemoveStringTag(String xml){
        return xml.replace("<string>","").replace("</string>","");
    }
}
